//
// Created by 吴喆 on 2020/3/1.
//

#ifndef SUMMER_CONFIGUTIL_H
#define SUMMER_CONFIGUTIL_H

#import <fstream>
#import <sstream>
#import <iostream>
#import <unordered_map>
#include "../Settings.h"


class ConfigUtil {
public:
    static std::unordered_map<std::string, std::string> configMap;
    static bool init();
    static bool initialized;
    static std::string getProp(const std::string &key);
    static double getPropD(const std::string &key);
    static int getPropI(const std::string &key);


private:
    static bool loadConfig();
    static bool saveConfig() {
        SUMMER_NOT_USED("x");
        return true;
    };
};
class ConfigConst {
public:
    static const std::string SCREEN_WIDTH;
    static const std::string SCREEN_HEIGHT;
    static const std::string VERTICAL_SYN;
    static const std::string GAME_TITLE;
    static const std::string MATERIAL_PATH;
    static const std::string MAP_PATH;
};
#endif //SUMMER_CONFIGUTIL_H
